<%@ page language="java" import="java.util.*"  pageEncoding="utf-8"  contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/meta.jsp"%>
<%@ include file="/commons/easyUI.jsp" %>
<html>
<head>
<title>用户管理系统</title>
<script type="text/javascript" src="./js/action/worklogs.js"></script>
</head>
<body style="margin:-20px">
	<!-- 使用 javascript 创建数据网格（datagrid） -->
	<table id="worklogs_table" > 

	</table> 
	
	
	<!-- 在 <div> 标签内定义工具栏 -->
	<div id="tb">
		<div>
			<a href="javascript:openAddWorklogDialog()" class="easyui-linkbutton"  data-options="iconCls:'icon-add',plain:true" >添加</a>
			<a href="javascript:openUpdateWorklogDialog()" class="easyui-linkbutton"  data-options="iconCls:'icon-edit',plain:true" >修改</a>
		</div>
		<div>
			&nbsp;日志时间：&nbsp;<input type="easyui-datebox"  id="logdate"  size="20" onkeydown="if(event.keyCode==13) searchWorklog()"/>
			<a href="javascript:searchWorklog()" class="easyui-linkbutton"  data-options="iconCls:'icon-search',plain:true" >搜索</a>
		</div>
	</div>
	
	
	<!-- 
	新增部门
	 -->
	<div id="addWorklogDlg" class="easyui-dialog" style="width: 450px;height:360px;padding: 10px 20px" data-options="closed:true,buttons:'#addWorklogDlg-buttons'">
	 	<form id="addWorklogFm" method="post">
	 		<table data-options="cellspacing:8px" >
	 			<tr hidden="true">
	 				<td>日志id：</td>
	 				<td><input  class="easyui-textbox" name="workLogDto.worklogId" id="worklogId"></td>
	 			</tr> 
	 			<tr>
	 				<td>标题：</td>
	 				<td><input class="easyui-textbox ; easyui-validatebox"  id="logtitle" name="workLogDto.title"  data-options="required:true,prompt:'请输入新日志的标题 '"  style="width:300px;height:30px;"/></td>
	 			</tr> 
	 			<tr>
	 				<td>内容：</td>
	 				<td><input class="easyui-textbox ; easyui-validatebox"  id="logdesc" name="workLogDto.log" data-options="required:true,multiline:true,prompt:'请输入对新日志的一些描述 ' " style="width:300px;height:200px;"/></td>
	 			</tr>  
	 			<tr>
	 				<td>时间：</td>
	 				<td><input class="easyui-datebox ; easyui-validatebox"   type="text" id="logtime" name="workLogDto.date" style="width:300px;height:30px;"/></td>
	 			</tr> 
	 		</table>
	 	</form>
	</div>
	
	<div id="addWorklogDlg-buttons">
		<a href="javascript:addWorklog()" class="easyui-linkbutton"  data-options=" iconCls:'icon-ok'">保存</a>
		<a href="javascript:closeAddWorklogDlg()"  class="easyui-linkbutton"  data-options=" iconCls:'icon-cancel'">关闭</a>
	</div>
	
	
	<!-- 
	修改部门
	 -->
	<div id="updateWorklogDlg" class="easyui-dialog" style="width: 450px;height:450px;padding: 10px 20px" data-options="closed:true,buttons:'#updateWorklogDlg-buttons'">
	 	<form id="updateWorklogFm" method="post">
	 		<table data-options="cellspacing:8px" >
	 			<tr hidden="true">
	 				<td>日志id：</td>
	 				<td><input  class="easyui-textbox" name="workLogDto.worklogId" id="worklogId1"></td>
	 			</tr> 
	 			<tr>
	 				<td>标题：</td>
	 				<td><input class="easyui-textbox ; easyui-validatebox"  id="logtitle1" name="workLogDto.title"  data-options="required:true,prompt:'请输入新日志的标题 '"  style="width:300px;height:30px;"/></td>
	 			</tr> 
	 			<tr>
	 				<td>内容：</td>
	 				<td><input class="easyui-textbox ; easyui-validatebox"  id="logdesc1" name="workLogDto.log" data-options="required:true,multiline:true,prompt:'请输入对新日志的一些描述 ' " style="width:300px;height:200px;"/></td>
	 			</tr>  
	 			<tr>
	 				<td>时间：</td>
	 				<td><input class="easyui-datebox" readonly="readonly" type="text" id="logtime1" name="workLogDto.date" style="width:300px;height:30px;"/></td>
	 			</tr> 
	 		</table>
	 	</form>
	</div>
	
	<div id="updateWorklogDlg-buttons">
		<a href="javascript:updateWorklog()" class="easyui-linkbutton"  data-options=" iconCls:'icon-ok'">保存修改</a>
		<a href="javascript:closeUpdateWorklogDlg()"  class="easyui-linkbutton"  data-options=" iconCls:'icon-cancel'">关闭修改</a>
	</div>
</body>
</html>